package com.ytd.smartcanteen.weighting.bean;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;
import java.util.List;

/**
 * Your class notes
 *
 * @author gaoguanchao
 * @since 2023/4/20
 */
@Entity
public class MealCategoryInfo implements Serializable {

    /**
     * categoryName : 分类一
     * id : 1604457832944635904
     * orderNum : 1
     * remark :
     * bound : true
     */

    public String categoryName;
    @PrimaryKey
    @NonNull
    public String id;
    public int orderNum;
    public String remark;
    public boolean bound;

    public String mealTimeId;
    public String mealTimeName;
    public boolean mealTimeBound;
    /**
     * categoryCode : 1000
     * createId : 0
     * createTime : 2023-01-05T10:01:37
     * deleted : 0
     * enabled : 1
     * merchantId : 1610818771692425216
     * parentId :
     * updateId : 1610818223035518976
     * updateTime : 2023-01-05T10:01:37
     */

    public String categoryCode;
    public String createId;
    public String createTime;
    public int deleted;
    public int enabled;
    public String merchantId;
    public String parentId;
    public String updateId;
    public String updateTime;

    @Ignore
    public List<MealInfo> mMealInfos;

    @Override
    public String toString() {
        return "MealCategoryInfo{" +
            "categoryName='" + categoryName + '\'' +
            ", id='" + id + '\'' +
            ", orderNum=" + orderNum +
            ", remark='" + remark + '\'' +
            ", bound=" + bound +
            ", mealTimeId='" + mealTimeId + '\'' +
            ", mealTimeName='" + mealTimeName + '\'' +
            ", mealTimeBound=" + mealTimeBound +
            '}';
    }
}
